package thinkingJava.chapter11;

public class Person {
	public String name;
	public int age;
	public String sex;

	public Person(String name) {
		this.name = name;
	}

	public Person(String name, int age, String sex) {
		super();
		this.name = name;
		this.age = age;
		this.sex = sex;
	}
	public String toString() {
		return getClass().getSimpleName() + ":" + this.name;
	}
}
